import random


def main():
    num = random.randint(100, 99999)
    if num in db.key():
      main()
    else:
      return num
